package _95MingLing.impl;

import _95MingLing.Order;
import _95MingLing.Stock;

/**
 * @BuyStock: 订单接口 实现类
 * @author: ZBoHang
 * @time: 2021/9/16 8:55
 */
public class BuyStock implements Order {
    private Stock abcStock;

    public BuyStock(Stock abcStock) {
        this.abcStock = abcStock;
    }

    @Override
    public void execute() {
        abcStock.buy();
    }
}
